/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: MouseEventLisenter.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/28 下午2:42
 * LastModified: 2020/03/22 22:52:22
 */

package com.qolome.knowledge.design.pattern.observer.demo.mouseevent.handler;


import com.qolome.knowledge.design.pattern.observer.demo.mouseevent.core.Event;
import com.qolome.knowledge.design.pattern.observer.demo.mouseevent.core.EventListener;

/**
 * 观察者
 * Created by Tom.
 */
public class MouseEventLisenter implements EventListener {

    public void onClick(Event e){
        System.out.println("==========触发鼠标单击事件========\n" + e);
    }

    public void onMove(Event e){

        System.out.println("==========触发鼠标移动事件========\n" + e);
    }
}
